<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateVpnsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('vpns', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->string('name')->comment('线路名称');
            $table->string('description')->nullable()->comment('线路描述');
            $table->string('serverhost')->comment('服务器');
            $table->string('remote_id')->comment('远程ID');
            $table->string('username')->comment('账号');
            $table->string('password')->comment('密码');
            $table->string('level_id')->comment('等级');
            $table->timestamps();
        });

    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('vpns');
    }
}
